package com.ruoyi.vstac.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.vstac.mapper.VstacEvaluationMapper;
import com.ruoyi.vstac.domain.VstacEvaluation;
import com.ruoyi.vstac.service.IVstacEvaluationService;

/**
 * 评价 Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-11
 */
@Service
public class VstacEvaluationServiceImpl implements IVstacEvaluationService 
{
    @Autowired
    private VstacEvaluationMapper vstacEvaluationMapper;

    /**
     * 查询评价 
     * 
     * @param evaluationId 评价 主键
     * @return 评价 
     */
    @Override
    public VstacEvaluation selectVstacEvaluationByEvaluationId(Integer evaluationId)
    {
        return vstacEvaluationMapper.selectVstacEvaluationByEvaluationId(evaluationId);
    }

    /**
     * 查询评价 列表
     * 
     * @param vstacEvaluation 评价 
     * @return 评价 
     */
    @Override
    public List<VstacEvaluation> selectVstacEvaluationList(VstacEvaluation vstacEvaluation)
    {
        return vstacEvaluationMapper.selectVstacEvaluationList(vstacEvaluation);
    }

    /**
     * 新增评价 
     * 
     * @param vstacEvaluation 评价 
     * @return 结果
     */
    @Override
    public int insertVstacEvaluation(VstacEvaluation vstacEvaluation)
    {
        return vstacEvaluationMapper.insertVstacEvaluation(vstacEvaluation);
    }

    /**
     * 修改评价 
     * 
     * @param vstacEvaluation 评价 
     * @return 结果
     */
    @Override
    public int updateVstacEvaluation(VstacEvaluation vstacEvaluation)
    {
        return vstacEvaluationMapper.updateVstacEvaluation(vstacEvaluation);
    }

    /**
     * 批量删除评价 
     * 
     * @param evaluationIds 需要删除的评价 主键
     * @return 结果
     */
    @Override
    public int deleteVstacEvaluationByEvaluationIds(Integer[] evaluationIds)
    {
        return vstacEvaluationMapper.deleteVstacEvaluationByEvaluationIds(evaluationIds);
    }

    /**
     * 删除评价 信息
     * 
     * @param evaluationId 评价 主键
     * @return 结果
     */
    @Override
    public int deleteVstacEvaluationByEvaluationId(Integer evaluationId)
    {
        return vstacEvaluationMapper.deleteVstacEvaluationByEvaluationId(evaluationId);
    }
}
